<!-- SIDEBAR child  -->  
<div id="rightsidebar">
	<div class="content">
		<div class="sidebox2"> 
			<ul style="text-align: right; border-top: none; margin-top: -20px;">
				<?php 
					if($usertype=="admin"){
						?>
							<li ><a href="#" onclick="uploadAttachment(<?php echo $project->projectID;?>); return false;"><b style="color: blue;">เพิ่มเอกสารแนบ</b></a></li>
						<?php
					}
				?>
				
			</ul>
			<table>
            	<thead>
            		<tr>
	            		<th width=""></th>
	            		<th width="20" ></th>
            		</tr>
            	</thead>
            	<tbody>
            		<?php 
	            		foreach($project->documents as $doc){
	            			if($doc->typeID > 6 ){
	            				?>
	            					<tr>
					            		<td ><?php echo $doc->docName;?></td>
					            		<td ><a href="#" onclick="openReport('<?php echo $doc->documentID;?>'); return false;">&nbsp;&nbsp;<img src="<?=Yii::app()->request->baseUrl?>/images/pdf.gif">&nbsp;&nbsp; </a></td>
				            		</tr>
	            				<?php
	            			}
	            		}
            		?>
            	</tbody>
            </table>
	    </div>
    </div>
</div>  
<!-- END Sidebar child  -->